package com.example.petplatform.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 捐款记录
 */
@Data
@Table(name = "t_donation_record")
public class DonationRecord {
    private Long id;            // 记录ID，自增主键
    @Column(name = "project_id")
    private Long projectId;     // 捐赠项目ID
    @Column(name = "user_id")
    private Long userId;        // 用户ID，关联捐款用户
    private BigDecimal amount;  // 捐款金额
    @Column(name = "donor_name")
    private String donorName;   // 捐赠人姓名
    private String message;     // 留言
    @Column(name = "create_time")
    private LocalDateTime createTime;  // 捐款时间
}
